﻿namespace 单元测试_CurrencyService
{
    public class Account
    {
        private readonly string _currency;
        private string _accountNumber;
        private double _balance;

        public Account(string accountNumber, string currency)
        {
            _accountNumber = accountNumber;
            _currency = currency;
        }

        public double Balance
        {
            get { return _balance; }
        }

        public string Currency
        {
            get { return _currency; }
        }

        public void Deposit(double amount)
        {
            _balance += amount;
        }

        public void Withdraw(double amount)
        {
            _balance -= amount;
        }
    }
}